#pragma once
#include <rtpsession.h>
#include "MutexBuffer.h"

namespace ipsound {

	class RTPTransfer : public RTPSession
{
public:
	RTPTransfer( MutexBuffer* recieveBuf );
	void SetBufEvent( HANDLE bufEvent, const size_t& eventDataSize );
	~RTPTransfer();
protected:
	void OnPollThreadStep();
private:
	MutexBuffer* recieveBuf;
	HANDLE bufEvent;
	size_t eventDataSize;
	size_t recievedDataSize;
	bool eventSent;
};

}